'use strict';

var bunyan = require('bunyan');

var bunyanOptions = {
  name: 'youzhe-nodejs',
  streams: [
    {
      level: 'debug',
      stream: process.stdout
    }/*, {
      level: 'debug',
      type: 'rotating-file',
      path: 'logs/logger.log',
      period: '1d',
      count: 3
    }*/
  ],
  serializers: bunyan.stdSerializers,
  src: true
};

var separator = ' ';
var logger = bunyan.createLogger(bunyanOptions);

module.exports = logger;
